package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ly.common.utils.DateUtils;
import com.ly.heart.mapper.KingReceiveNoticeLogisticsMapper;
import com.ly.heart.service.IKingReceiveNoticeLogisticsService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingReceiveNoticeLogisticsEntity;

import javax.annotation.Resource;

/**
 * 金蝶-收料通知单物流跟踪Service业务层处理
 *
 * @author cxl
 * @date 2024-08-11
 */
@Service
public class KingReceiveNoticeLogisticsServiceImpl extends ServiceImpl<KingReceiveNoticeLogisticsMapper,KingReceiveNoticeLogisticsEntity> implements IKingReceiveNoticeLogisticsService {

    @Resource
    private KingReceiveNoticeLogisticsMapper kingReceiveNoticeLogisticsMapper;

    /**
     * 查询金蝶-收料通知单物流跟踪
     *
     * @param id 金蝶-收料通知单物流跟踪ID
     * @return 金蝶-收料通知单物流跟踪
     */
    @Override
    public KingReceiveNoticeLogisticsEntity selectKingReceiveNoticeLogisticsEntityById(String id)
    {
        return kingReceiveNoticeLogisticsMapper.selectKingReceiveNoticeLogisticsEntityById(id);
    }

    /**
     * 查询金蝶-收料通知单物流跟踪列表
     *
     * @param kingReceiveNoticeLogisticsEntity 金蝶-收料通知单物流跟踪
     * @return 金蝶-收料通知单物流跟踪
     */
    @Override
    public List<KingReceiveNoticeLogisticsEntity> selectKingReceiveNoticeLogisticsEntityList(KingReceiveNoticeLogisticsEntity kingReceiveNoticeLogisticsEntity)
    {
        return kingReceiveNoticeLogisticsMapper.selectKingReceiveNoticeLogisticsEntityList(kingReceiveNoticeLogisticsEntity);
    }

    /**
     * 新增金蝶-收料通知单物流跟踪
     *
     * @param kingReceiveNoticeLogisticsEntity 金蝶-收料通知单物流跟踪
     * @return 结果
     */
    @Override
    public int insertKingReceiveNoticeLogisticsEntity(KingReceiveNoticeLogisticsEntity kingReceiveNoticeLogisticsEntity)
    {
        kingReceiveNoticeLogisticsEntity.setCreateTime(DateUtils.getNowDate());
        return kingReceiveNoticeLogisticsMapper.insertKingReceiveNoticeLogisticsEntity(kingReceiveNoticeLogisticsEntity);
    }

    /**
     * 修改金蝶-收料通知单物流跟踪
     *
     * @param kingReceiveNoticeLogisticsEntity 金蝶-收料通知单物流跟踪
     * @return 结果
     */
    @Override
    public int updateKingReceiveNoticeLogisticsEntity(KingReceiveNoticeLogisticsEntity kingReceiveNoticeLogisticsEntity)
    {
        return kingReceiveNoticeLogisticsMapper.updateKingReceiveNoticeLogisticsEntity(kingReceiveNoticeLogisticsEntity);
    }

    /**
     * 批量删除金蝶-收料通知单物流跟踪
     *
     * @param ids 需要删除的金蝶-收料通知单物流跟踪ID
     * @return 结果
     */
    @Override
    public int deleteKingReceiveNoticeLogisticsEntityByIds(String[] ids)
    {
        return kingReceiveNoticeLogisticsMapper.deleteKingReceiveNoticeLogisticsEntityByIds(ids);
    }

    /**
     * 删除金蝶-收料通知单物流跟踪信息
     *
     * @param id 金蝶-收料通知单物流跟踪ID
     * @return 结果
     */
    @Override
    public int deleteKingReceiveNoticeLogisticsEntityById(String id)
    {
        return kingReceiveNoticeLogisticsMapper.deleteKingReceiveNoticeLogisticsEntityById(id);
    }
}
